package o;

import android.view.View;
import com.huawei.support.widget.HwSearchView;
import java.lang.ref.WeakReference;

public class fmg extends SkinAttr {

    static final class b extends fkz<SkinAttr, Integer> {
        private WeakReference<HwSearchView> ˏ;

        private b(HwSearchView hwSearchView) {
            this.ˏ = new WeakReference(hwSearchView);
        }

        public void ॱ(Integer num) {
            HwSearchView hwSearchView = (HwSearchView) this.ˏ.get();
            if (hwSearchView != null) {
                hwSearchView.setTextCursorColor(num.intValue());
            }
        }
    }

    public fmg() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof HwSearchView) {
            HwSearchView hwSearchView = (HwSearchView) view;
            if ("color".equals(this.attrValueTypeName)) {
                this.ʽ = "color";
                fks.ˎ(view.getContext(), this, new b(hwSearchView)).ॱ(z);
            }
        }
    }
}
